GtkMenu: Properly detach menu when the window is detached
authorJonas Ådahl <jadahl@gmail.com>
Thu, 23 Jul 2015 06:34:12 +0000 (14:34 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 26 Jul 2015 05:57:26 +0000 (01:57 -0400)
commit955c1c7734507bd5ef9b9aa36469948405cf2b81
treea70cbeb5d956e4274638b062375e2dc36249f875
parent83b7a0f0e5fd1eb49dc7e7ce8811b69434897aad
GtkMenu: Properly detach menu when the window is detached

Without properly cleaning up GtkMenu private attach state
(GtkMenuAttachData) when the attached widget is freed, we would end up
with an invalid pointer to a freed widget. Trying to detach from that
widget would cause a segmentation fault.

https://bugzilla.gnome.org/show_bug.cgi?id=752761
gtk/gtkmenu.c